﻿using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace BitcoinMarket
{
    public class ItemViewModel : INotifyPropertyChanged
    {
        private string _currencyName;
        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string CurrencyName
        {
            get
            {
                return _currencyName;
            }
            set
            {
                if (value != _currencyName)
                {
                    _currencyName = value;
                    NotifyPropertyChanged("CurrencyName");
                }
            }
        }

        private string _h24;
        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string H24
        {
            get
            {
                return _h24;
            }
            set
            {
                if (value != _h24)
                {
                    _h24 = value;
                    NotifyPropertyChanged("H24");
                }
            }
        }

        private string _d7;
        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string D7
        {
            get
            {
                return _d7;
            }
            set
            {
                if (value != _d7)
                {
                    _d7 = value;
                    NotifyPropertyChanged("D7");
                }
            }
        }

        private string _d30;
        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string D30
        {
            get
            {
                return _d30;
            }
            set
            {
                if (value != _d30)
                {
                    _d30 = value;
                    NotifyPropertyChanged("D30");
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}